package org.swidgets.base;

import org.swidgets.base.slabel.SLabel;


/**
 * 
 * Internal class
 *
 */
public class SColumn {
	private String width;
	private SLabel caption=new SLabel();
	private String name;
	private int index;
	

	public SColumn(String name){
		this.caption.setText(name);
		this.caption.setStyle(caption.SMALL_TITLE_LABEL_STYLE);
		this.setIndex(-1);
		this.name=name;
	}
	
	public SColumn(String name,String width){
		this.caption.setText(name);
		this.caption.setStyle(caption.SMALL_TITLE_LABEL_STYLE);
		this.setWidth(width);
		this.setIndex(-1);
		this.name=name;
	}

	

	

	public String getWidth() {
		return width;
	}

	public void setWidth(String width) {
		this.width = width;
	}

	public SLabel getCaption() {
		return caption;
	}

	public void setCaption(SLabel caption) {
		this.caption = caption;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public int getIndex() {
		return index;
	}

	public void setIndex(int index) {
		this.index = index;
	}
	
	
	
	
}
